package com.wzy.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wzy.db.dao.PersonMapper;
import com.wzy.db.model.Person;

@Service
public class PersonService {
	
	@Autowired
	PersonMapper personMapper;
	
	public Person getById(Integer id) {
		Person p = personMapper.selectByPrimaryKey(id);
		return p;
	}
	
}
